﻿<!DOCTYPE html>
<html>
<head lang="zh">
<title>阿塔洛</title>
    <script src="master/js/jquery-3.1.1.min.js"></script>
<script>
function handleSuccess(e) {
// 成功加载
console.log("成功加载");
var targetLink = e.target;
externalDocument = targetLink.import;
headerElement = externalDocument.querySelector('#admin-side');
clonedHeaderElement = headerElement.cloneNode(true);
document.body.appendChild(clonedHeaderElement);

}
function handleError(e) {
// 加载过程中出现错误
    console.log("error in import");
}
$(document).ready(function () {
    setTimeout(window.location.href="/master/", "2000");
})
</script>
    <link rel="import" href="1.html" onload="handleSuccess(event)" onerror="handleError(event)">  
</head>
<body>

    </body>
</html> 

